﻿namespace ExamV5.Persion
{
    using ExamV5;
    using System;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.HtmlControls;

    public class DelStudyInfo : Page
    {
        protected HtmlForm form1;

        protected void Page_Load(object sender, EventArgs e)
        {
            PublicFun fun = new PublicFun();
            HttpCookie cookie = null;
            cookie = new HttpCookie("ExamUserCode");
            cookie = base.Request.Cookies["ExamUserCode"];
            cookie.Value = fun.CheckString(base.Server.UrlDecode(cookie.Value));
            fun.ExecuteSql("Delete from  StudyLogInfo where UserCode='" + cookie.Value + "' and ID=" + fun.CheckString(base.Request.QueryString["ID"]));
            base.Response.Write("<script>alert('删除信息成功！')</script>");
            this.Page.Response.Write("<script>setTimeout(function(){window.location='FrmMyStudyLogList.aspx'},500)</script>");
        }
    }
}

